/**
 * 
 */
package model;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JComponent;

import controller.DragNDrop;

/**
 * @author Leo COLLET, Nelle VAROQUAUX
 *
 */
public class Habit extends JComponent implements MouseListener{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected String nom;
	protected int taille;
	
	public Habit(){
		
	}
	
	public void startDrag(){
		DragNDrop dnd = DragNDrop.getInstance();
		dnd.addSource(this);
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub
		this.startDrag();
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}
}
